<?php

class Poll_Controller_Browse_View extends Nuo_Controller
{
	function execute($request)
	{
		// if (!Nuo::allow('blog.view')){return  'could not view blog';return;}

		$table = Nuo::getTable('poll');

		$userId = Nuo::getUserId();

		$id = $request -> getParam('poll_id');

		$item = $table -> find($id) -> current();
		
		if(!is_object($item)){
			// return 404
		}

		return  $this -> render(array('item' => $item));
	}

}
